package com.chatsimple.netty.task.usecase

import com.google.protobuf.ByteString
import com.google.protobuf.Message


interface UseCase {

    @Throws(UnHandleError::class)
    fun handle(param: ByteString): Message?
}


class UnHandleError(val code: Int, msg: String, val result: ByteArray? = null) :
    IllegalArgumentException(msg)